package com.hzdl.apple.utils;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hzdl.apple.Constants;



public class HttpUtils {

	/** 
	 * 转发jsp方法
	 */
	public static void forward(String uri, HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.getRequestDispatcher(Constants.BASEURI + uri).forward(req, resp);
	}
	/**
	 * 转发Servlet方法
	 */
	public static void forward2(String uri, HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.getRequestDispatcher(uri).forward(req, resp);
	}

}
